﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/admincp.Master" AutoEventWireup="true" CodeBehind="ListOrderStatus.aspx.cs" Inherits="VINETLIFE.AdminCP.ListOrderStatus" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <h2>
        Danh sách trạng thái thanh toán</h2>
    <div style="float: left; width: 100%;">
        <asp:GridView ID="gvAt" DataKeyNames="TransactionStatusId" runat="server" AutoGenerateColumns="False"
            OnRowDeleting="gvAt_RowDeleting" OnSelectedIndexChanged="gvAt_SelectedIndexChanged"
            PageSize="50" CssClass="tstyle2" Width="100%" PagerStyle-CssClass="pgr" AllowPaging="true"
            OnPageIndexChanged="gvAt_PageIndexChanged" OnPageIndexChanging="gvAt_PageIndexChanging">
            <Columns>
                <asp:TemplateField ItemStyle-Width="13%" HeaderText="Số TT" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <%# Container.DataItemIndex +1 %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="TransactionStatus" HeaderText="Trạng thái thanh toán" SortExpression="TransactionStatus" ItemStyle-Width="30%" />
                  <asp:BoundField DataField="TransactionStatusCode" HeaderText="Mã trạng thái thanh toán" SortExpression="TransactionStatusCode" ItemStyle-Width="30%" />
                <asp:BoundField DataField="CreatedDate" HeaderText="Ngày tạo" SortExpression="CreatedDate"
                    ItemStyle-Width="15%" />
                <asp:BoundField DataField="FullName" HeaderText="Người tạo" SortExpression="FullName"
                    ItemStyle-Width="13%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                <asp:TemplateField ItemStyle-Width="13%" HeaderText="Thao tác" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:ImageButton ID="btEdit" runat="server" CommandName="Select" ImageUrl="~/AdminCP/images/edit_16x16.gif" />
                        <asp:ImageButton ID="btDelete" runat="server" CommandArgument='<%#Eval("TransactionStatusId") %>'
                            CommandName="Delete" ImageUrl="~/AdminCP/images/delete_16x16.gif" OnClientClick="return confirm('Có muốn xóa bản ghi này? Nhấn OK để xóa!')" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <br />
        <asp:Button CssClass="button-gg-green" ID="btnAdd" runat="server" OnClick="btnAdd_Click"
            Text="Thêm mới" />
    </div>
</asp:Content>
